package com.itheima.mapper;

import com.github.pagehelper.Page;
import com.itheima.pojo.Permission;
import org.apache.ibatis.annotations.Param;

import java.util.Set;

public interface PermissionMapper {
    int deleteByPrimaryKey(Integer id);

    int insert(Permission record);

    Permission selectByPrimaryKey(Integer id);

    int updateByPrimaryKey(Permission record);

    Page<Permission> findPage(@Param("queryString") String queryString);
    Set<Permission> findByRoleId(@Param("id") Integer id);
}